package factory.abstractfactory;

public class BJFactory implements AbsFactory {

    @Override
    public Pizza createPizza(String type) {
        if (type.equals("cheese")) {
            return new BJCheesePizza();
        } else if (type.equals("pepper")) {
            return new BJPepperPizza();
        }
        return null;
    }

}
